package com.myosw.http;

import java.sql.Timestamp;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;




import javax.servlet.http.Cookie;
import javax.servlet.http.HttpSession;




public class SessionContext  implements com.myosw.http.HttpSession {

	
	private HttpSession httpSession;
	private HttpRequest httpRequest ;

	public SessionContext(HttpRequest httpRequest)
	{
		this.httpSession = httpRequest.getSession();
		this.httpRequest = httpRequest;
	}

	@Override
	public void setAttribute(String name, Object value)
	{
		httpSession.setAttribute(name, value);
	}

	@Override
	public void removeAttribute(String name)
	{
		httpSession.removeAttribute(name);
	}

	@Override
	public Object getAttribute(String name)
	{
		return httpSession.getAttribute(name);
	}

	@Override
	public String getId()
	{
		return httpSession.getId();
	}


	@Override
	public Enumeration<?> getAttributeNames()
	{
		return httpSession.getAttributeNames();
	}

	@Override
	public void invalidate()
	{
		httpSession.invalidate();
	}

	

	
	

}
